package cn.touna.jss.modules.third.bairong.entity;

import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 百融
 * <p>
 * Created by xiaoli on 2017/7/20.
 */
public class BaiRongEntity extends BaseDomain {

    /**
     * 身份证号码
     **/
    @IdCard(message = "身份证校验失败", groups = {First.class})
    private String idCard;

    /**
     * 名字
     **/
    @NotBlank(message = "名字不能为空", groups = {First.class})
    private String name;

    /**
     * 手机号
     **/
    @Mobile(message = "电话号码校验失败", groups = {First.class})
    private String mobile;

    /**
     * 联系人
     **/
    private String friendMobilePhone;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getFriendMobilePhone() {
        return friendMobilePhone;
    }

    public void setFriendMobilePhone(String friendMobilePhone) {
        this.friendMobilePhone = friendMobilePhone;
    }
}
